from manimlib import *
from numpy import square
import numpy as np

class SquareToCircle(Scene):
    #75cfb8
    #浅绿
    #bbdfc8
    #浅黄
    #f0e5d8
    #深黄
    #ffc478
    def construct(self):
        self.camera.background_color = WHITE
        square = Square(color='#75cfb8',side_length=6)


        a1=Sector(outer_radius=2,color='#ffc478',start_angle=0,angle=TAU/4,arc_center=np.array([-3,-3,0]),fill_opacity=0.5)

        a1.set_fill('#ffc478')
        a2=a1.copy().rotate_about_origin(TAU/4)
        a3=a1.copy().rotate_about_origin(2*TAU/4)
        a4=a1.copy().rotate_about_origin(3*TAU/4)

        self.add(a1,a2,a3,a4,square)
        self.wait(0.03)
